import { createRouter, createWebHistory } from 'vue-router'
// import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    // {
    //   path: '/',
    //   name: 'home',
    //   component: HomeView,
    // },
    {
      path: '/',
      redirect:'/login'
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('@/views/login/index.vue'),
    },
    {
      path: '/detail',
      name: 'detail',
      component: () => import('@/views/detail/index.vue'),
    },
    {
      path: '/order',
      name: 'order',
      component: () => import('@/views/order/index.vue'),
    },
  ],
})

export default router
